package org.cid54.jshopper.service;

import java.util.List;
import java.util.Map;
import org.cid54.jshopper.model.Item;
import org.cid54.jshopper.model.User;
import org.cid54.jshopper.model.UserGroup;

/**
 *
 * @author fgo
 */
public interface AdminService {

    List<User> getAllUsers();

    List<UserGroup> getAllGroups();

    List<Item> getAllItems();

    Map<User, Map<UserGroup, Boolean>> getUsersMemberShips();

    void updateItem(long itemId, String name);

    void createItem(String name);

    void deleteItem(long itemId);

    void updateUser(long userId, User user, List<Long> userGroupIds);

    void createUser(User user, List<Long> userGroupIds);

    void deleteUser(long parseLong);

    void deleteGroup(long groupId);

    void createGroup(UserGroup group);

    void updateGroup(long groupId, String groupName);

}
